import Vue from 'vue'
import Router from 'vue-router'
import Share from '../components/share.vue'
import Gotoapp from '../components/gotoapp.vue'

Vue.use(Router)

export default new Router({
  mode: 'history',
  // linkActiveClass: 'active',
  routes: [{
    path: '/',
    redirect: '/share'
  },
  {
    path: '/share',
    name: 'share',
    component: Share,
    children: [{
      path: 'gotoapp',
      name: 'gotoapp',
      component: Gotoapp
    }]
  }]
})
